using System;

namespace Picnic.Spec.Console
{
	/// <summary>
	/// Represent an interface of console exception writer.
	/// </summary>
	public interface IConsoleExceptionWriter
	{
		/// <summary>
		/// Determines is writer can write specified exception.
		/// </summary>
		bool CanWrite(Exception exception);

		/// <summary>
		/// Writes exception using specified console writer.
		/// </summary>
		void Write(IConsole console, Exception exception);
	}
}